package cn.yunyichina.provider.hisiface.service.impl;

import org.springframework.stereotype.Service;

import cn.yunyichina.provider.hisiface.service.AbstractService;
import cn.yunyichina.provider.iface.entity.common.ResCommon;
import cn.yunyichina.provider.iface.entity.hisiface.base.CreateCardVo;
import cn.yunyichina.provider.iface.entity.hisiface.base.CreateCardVoResponse;
import cn.yunyichina.provider.iface.entity.hisiface.base.PatientVo;
import cn.yunyichina.provider.iface.entity.hisiface.base.PatientVoResponse;

/**
 * 个人中心服务接口
 * <p>
 * 建档 createCard
 * <br>
 * 患者信息查询 getPatient
 * 
 * @author zhou
 *
 */
@Service
public class HisifacePatientServiceImpl extends AbstractService {
	
	/**
	 * 患者信息查询
	 * 
	 * @param patientVo
	 * @return
	 */
    public ResCommon<PatientVoResponse> getPatient(PatientVo patientVo) {
    	String methodCode = "getPatient";
    	String methodName = "患者信息查询";
    	
    	return doExec(methodCode, methodName, patientVo, PatientVoResponse.class);
    }
    
    /**
     * 建档
     * 
     * @param createCardVo
     * @return
     */
    public ResCommon<CreateCardVoResponse> createCard(CreateCardVo createCardVo) {
    	String methodCode = "createCard";
    	String methodName = "首诊患者建档";
    	
    	return doExec(methodCode, methodName, createCardVo, CreateCardVoResponse.class);
    }
    
}
